using System;
using Gtk;

namespace Parking
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Application.Init ();
			
			var parking = new Parking (5);
			var acces1 = new Acces ("Accès 1", parking);
			var acces2 = new Acces ("Accès 2", parking);
			var borne1a = new Borne ("Borne A", acces1);
			var borne1b = new Borne ("Borne B", acces1);
			var borne2a = new Borne ("Borne A", acces2);
			var borne2b = new Borne ("Borne B", acces2);
			FenetreQuitter fq = new FenetreQuitter ();
			fq.ShowAll ();
			acces1.ajouterBorne(borne1a);
			acces1.ajouterBorne(borne1b);
			acces2.ajouterBorne(borne2a);
			acces2.ajouterBorne(borne2b);
			parking.ajouterAcces(acces1);
			parking.ajouterAcces(acces2);
			
			Application.Run();
		}
	}
}
